#ifndef ALIYUN_IOT_PLATFORM_UART_H
#define ALIYUN_IOT_PLATFORM_UART_H
#include "aliyun_iot_common_datatype.h"
#include "usart.h"
#include "aliyun_iot_platform_network.h"

#include "gsm_function.h"

/*
	send uart data
*/
INT32 aliyun_iot_uart_send(INT8 *pSendBuffer, INT32 bufferLen);

/*
	receive uart data
*/
INT32 aliyun_iot_uart_recv(INT8 *pRecvBuffer, INT32 bufferLen, UINT32 timeOutMs);

/*
	initialize the baud rate of the uart
*/
INT32 aliyun_iot_uart_init(void);


INT32 aliyun_iot_uart_Open_TCP(INT8*host, INT8*service,IOT_NET_PROTOCOL_TYPE type);
INT32 aliyun_iot_uart_Close_TCP(INT32 fd);

#endif
